#include <string>
#include <set>
#include <iostream>
#include <stdio.h>
using namespace std;
class Solution {
public:
	int findMinStep(string board, string hand) {
		printf("%x\n",min_cnt);
		return 0;
	}
private:
	void update(string& board) {
		int slow = 0;
		int fast = 0;
		for (; fast < (int)board.size(); ++fast) {
			if (fast < (int)board.size() && board[slow] == board[fast]) {
				continue;
			}
			if (fast - slow >= 3) {
				board.erase(slow, fast - slow);
				fast = 0;
			}
			slow = fast;
		}
	}
	void helper(string& board, string& hand, int cnt) {
		if (cnt >= min_cnt) return;
		if (visited.count({ board,cnt }))return;

	}
private:
	set<pair<string, int>>visited;
	static const int min_cnt;
};
const int Solution::min_cnt = 0x3f3f3f3f;
int main(int argc,char* argv[]) {
	Solution sol;
	sol.findMinStep(string(),string());
	return 0;
}